#include<math.h>
#include "myphoto.h"
int main(int argc,char* argv[]){
    photo* myp = new(300,300);
    int white = newColor(255,255,255,0,myp);
    int black = newColor(0,0,0,0,myp);
    int red = newColor(255,0,0,0,myp);
    int color = 0;
    int i = 0;
    int n = 0;
    if(argc == 1){
		exit(1);
	}
	setBg(white,myp);
    for(i=0;i<300;++i){
        for(n=0;n<300;++n){
            //n = (int)100*sin((i/300.0)*3.14)+150;
            color = newColor(100,(int)i/300.0*255,(int)n/300.0*255,0,myp);
            point(i,n,color,myp);
        }
    }
    saveToFile(argv[1],myp);
	return 0;
}
